﻿namespace Common.Tools.Computer
{
    /// <summary>
    /// 资源接口
    /// </summary>
    public interface IResource
    { 
        /// <summary>
        /// 获取Cpu资源
        /// </summary>
        /// <returns></returns>
        Task<float> GetCpuUsage();

        /// <summary>
        /// 获取内存资源
        /// </summary>
        /// <returns></returns>
        Task<float> GetMemoryUsage();
    }
}
